package com.sigmatrix.h5.web.controller.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sigmatrix.h5.entity.v2.DisDealerAcct;
import com.sigmatrix.h5.service.db.DisDealerAcctDBService;
import com.sigmatrix.h5.web.BaseController;

/**
 * Acct相关。测试mybatic常用操作
 * 
 * @author wei.wang
 *
 */
@RestController
@RequestMapping("/util/test/acct")
public class TestAccountController extends BaseController {

	@Autowired
	private DisDealerAcctDBService disDealerAcctDBService;
	

	//
	@GetMapping("/select/by/id/{id}")
	public Object selectById(@PathVariable Integer id) {
		DisDealerAcct acct = disDealerAcctDBService.selectById(id, null);
		return acct;
	}
	
}
